package com.example.sample.Infrastructure;

import javax.servlet.*;
import java.io.IOException;

public class TestFilter implements Filter {

    @Override
    public void destroy() {
        //System.out.println("Filter结束了");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        //System.out.println("Filter开始");
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
